package com.link2room.enums.exception;

import com.link2room.common.constant.BaseConstant;
import com.link2room.common.enums.DefaultSysExceptionInterface;

/**
 * Created by sss on 2016/8/11.
 */
public enum JetfireSysExceptionEnum implements DefaultSysExceptionInterface{
    /****JETFIRE**********JETFIRE********************JETFIRE**********JETFIRE****/
    RESER_SAVE_ERROR(1501,"订单保存失败", BaseConstant.SysExceptionConstant.BIZ_TYPE.JETFIRE),
    POINT_USE_ERROR(1502,"使用积分异常", BaseConstant.SysExceptionConstant.BIZ_TYPE.JETFIRE),
    PRICE_NOT_MATCH(1503,"金额不一致", BaseConstant.SysExceptionConstant.BIZ_TYPE.JETFIRE),
    RESER_IS_EXIST(1504,"订单已存在", BaseConstant.SysExceptionConstant.BIZ_TYPE.JETFIRE),
    RESER_IS_NOT_EXIST(1505,"订单未找到", BaseConstant.SysExceptionConstant.BIZ_TYPE.JETFIRE),
    RESER_RMNUM_LESS(1506,"下单可订房量不足", BaseConstant.SysExceptionConstant.BIZ_TYPE.JETFIRE),
    SAVE_PMS_PAY_ERROR(1507,"PMS入账失败", BaseConstant.SysExceptionConstant.BIZ_TYPE.JETFIRE),
    ABOVE_CANCEL_DATE(1508,"已过取消时间，该订单无法取消", BaseConstant.SysExceptionConstant.BIZ_TYPE.JETFIRE),
    EVERYDAY_PRICE_NOT_EXIT(1509,"每日房价不存在", BaseConstant.SysExceptionConstant.BIZ_TYPE.JETFIRE),
    RESER_SAVE_PAY_ERROR(1510,"PMS入账重试失败", BaseConstant.SysExceptionConstant.BIZ_TYPE.JETFIRE),
    L2R_PAYSTA_NOT_DONE(1511,"支付不成功", BaseConstant.SysExceptionConstant.BIZ_TYPE.JETFIRE),
    L2R_PRE_ORDER_ERROR(1512,"预付订单等待支付超时", BaseConstant.SysExceptionConstant.BIZ_TYPE.JETFIRE),

    ;

    private JetfireSysExceptionEnum(int code, String msg, String bizType){
        this.code=code;
        this.msg=msg;
        this.bizType=bizType;
    }

    private int code;

    private String msg;

    private String bizType;

    @Override
    public int getCode() {
        return code;
    }
    @Override
    public void setCode(int code) {
        this.code = code;
    }
    @Override
    public String getMsg() {
        return msg;
    }
    @Override
    public void setMsg(String msg) {
        this.msg = msg;
    }
    @Override
    public String getBizType() {
        return bizType;
    }
    @Override
    public void setBizType(String bizType) {
        this.bizType = bizType;
    }
}
